import React from 'react';
import { Button } from 'antd';
import styles from './index.less';
import { Helmet } from 'umi';
import Banner from './Banner';
import Cards from './Cards';
import Texts from './Texts';
import Revelation from './Revelation';

// 可以结构出来项目中 80%以上需要的内容 （详情看commonPkg）
import commonPkg from '@/utils/commonPkg';
const {
  event,
  webscoket,
  ep,
  icons,
  images,
  consts,
  BNum,
  logger,
  getStore,
  getState,
  setTheme,
  request,
  classNames,
  api: {
    commonApi: {},
    userApi: { getUserinfo, clearLogin, getUserList },
  },
} = commonPkg;
export default class extends React.Component {
  render() {
    return (
      <div className={styles.pageRoot}>
        <Helmet>
          <title>首页</title>
        </Helmet>
        <Banner />
        <div className={styles.content}>
          <img src={require('./img/bg1.png')} className={styles.bg1} />
          <img src={require('./img/bg2.png')} className={styles.bg2} />
          <div className={styles.contentCont}>
            <div className={styles.describe}>
              <div className={styles.left}>
                <Texts />
              </div>

              <div className={styles.right}>
                <Cards />
              </div>
            </div>

            <Revelation />
          </div>
        </div>
      </div>
    );
  }
}
